/*! @sentry/browser 6.18.2 (22f518e) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},n(t,r)};function r(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e=function(){return e=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function a(){for(var t=[],n=0;n ".length,a=void 0;r&&e++<5&&!("html"===(a=_(r,n))||e>1&&o+i.length*u+a.length>=80);)i.push(a),o+=a.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return""}}function _(t,n){var r,i,e,o,u,a=t,c=[];if(!a||!a.tagName)return"";c.push(a.tagName.toLowerCase());var s=n&&n.length?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(s&&s.length)s.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&c.push("#"+a.id),(r=a.className)&&p(r))for(i=r.split(/\s+/),u=0;u1&&(h=d.slice(0,-1).join("/"),v=d.pop()),v){var l=v.match(/^\d+/);l&&(v=l[0])}return T({host:c,pass:a,path:h,projectId:v,port:f,protocol:i,publicKey:e})}(t):T(t);return n}var R=["fatal","error","warning","log","info","debug","critical"],N=s(),I="Sentry Logger ";function M(t){var n=s();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)}));var e=t();return Object.keys(i).forEach((function(t){r[t]=i[t]})),e}var q=function(){function t(){this.t=!1}return t.prototype.disable=function(){this.t=!1},t.prototype.enable=function(){this.t=!0},t.prototype.log=function(){for(var t=[],n=0;n"}try{o.currentTarget=w(e.currentTarget)?E(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget=""}for(var u in"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u]);return o}return t}function z(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function G(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=Q(t,n);return z(i)>r?G(t,n-1,r):i}function K(t,n){return"domain"===n&&t&&"object"==typeof t&&t.i?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":m(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+U(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function V(t,n,r,i){var e,o;void 0===r&&(r=1/0),void 0===i&&(e="function"==typeof WeakSet,o=e?new WeakSet:[],i=[function(t){if(e)return!!o.has(t)||(o.add(t),!1);for(var n=0;n=n)return H(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:H(e,n)}return""}function Z(t){var n,r;if(m(t)){var i=t,e={};try{for(var u=o(Object.keys(i)),a=u.next();!a.done;a=u.next()){var c=a.value;void 0!==i[c]&&(e[c]=Z(i[c]))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(Z):t}function tt(){if(!("fetch"in s()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function nt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function rt(){if(!tt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var it,et=s(),ot={},ut={};function at(t){if(!ut[t])switch(ut[t]=!0,t){case"console":!function(){if(!("console"in et))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in et.console&&X(et.console,t,(function(n){return function(){for(var r=[],i=0;i2?n[2]:void 0;if(i){var e=it,o=String(i);it=o,st("history",{from:e,to:o})}return t.apply(this,n)}}et.onpopstate=function(){for(var n=[],r=0;r":r||""}function xt(t,n,r){var i=t.exception=t.exception||{},e=i.values=i.values||[],o=e[0]=e[0]||{};o.value||(o.value=n||""),o.type||(o.type=r||"Error")}function Et(t,n){var r=wt(t);if(r){var i=r.mechanism;if(r.mechanism=e(e(e({},{type:"generic",handled:!0}),i),n),n&&"data"in n){var o=e(e({},i&&i.data),n.data);r.mechanism.data=o}}}function _t(t){if(t&&t.__sentry_captured__)return!0;try{B(t,"__sentry_captured__",!0)}catch(t){}return!1}function jt(t){return new St((function(n){n(t)}))}function kt(t){return new St((function(n,r){r(t)}))}var St=function(){function t(t){var n=this;this.o=0,this.u=[],this.h=function(t){n.v(1,t)},this.l=function(t){n.v(2,t)},this.v=function(t,r){0===n.o&&(g(r)?r.then(n.h,n.l):(n.o=t,n.p=r,n.m()))},this.m=function(){if(0!==n.o){var t=n.u.slice();n.u=[],t.forEach((function(t){t[0]||(1===n.o&&t[1](n.p),2===n.o&&t[2](n.p),t[0]=!0)}))}};try{t(this.h,this.l)}catch(t){this.l(t)}}return t.prototype.then=function(n,r){var i=this;return new t((function(t,e){i.u.push([!1,function(r){if(n)try{t(n(r))}catch(t){e(t)}else t(r)},function(n){if(r)try{t(r(n))}catch(t){e(t)}else e(n)}]),i.m()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,i){var e,o;return r.then((function(t){o=!1,e=t,n&&n()}),(function(t){o=!0,e=t,n&&n()})).then((function(){o?i(e):t(e)}))}))},t}();function Ot(t){var n=[];function r(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(i){if(!(void 0===t||n.length0&&r(!1)}),t);n.forEach((function(t){jt(t).then((function(){--e||(clearTimeout(o),r(!0))}),i)}))}))}}}function Tt(n){return"warn"===n?t.Severity.Warning:function(t){return-1!==R.indexOf(t)}(n)?n:t.Severity.Log}var Dt={nowSeconds:function(){return Date.now()/1e3}};var Rt=function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Nt=void 0===Rt?Dt:{nowSeconds:function(){return(Rt.timeOrigin+Rt.now())/1e3}},It=Dt.nowSeconds.bind(Dt),Mt=Nt.nowSeconds.bind(Nt);function qt(t,n){return void 0===n&&(n=[]),[t,n]}function At(t){var n=u(t,2),r=n[0],i=n[1],e=JSON.stringify(r);return i.reduce((function(t,n){var r=u(n,2),i=r[0],e=r[1],o=y(e)?String(e):JSON.stringify(e);return t+"\n"+JSON.stringify(i)+"\n"+o}),e)}!function(){var t=s().performance;if(t&&t.now){var n=36e5,r=t.now(),i=Date.now(),e=t.timeOrigin?Math.abs(t.timeOrigin+r-i):n,o=e0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.R,this.H(a(Lt(),this.j),t,n)},t.prototype.setSDKProcessingMetadata=function(t){return this.R=e(e({},this.R),t),this},t.prototype.H=function(t,n,r,i){var o=this;return void 0===i&&(i=0),new St((function(u,a){var c=t[i];if(null===n||"function"!=typeof c)u(n);else{var s=c(e({},n),r);g(s)?s.then((function(n){return o.H(t,n,r,i+1).then(u)})).then(null,a):o.H(t,s,r,i+1).then(u).then(null,a)}}))},t.prototype.L=function(){var t=this;this.g||(this.g=!0,this._.forEach((function(n){n(t)})),this.g=!1)},t.prototype.U=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.A&&(t.fingerprint=t.fingerprint.concat(this.A)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function Lt(){var t=s();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Ut(t){Lt().push(t)}var Ht=function(){function t(t){this.errors=0,this.sid=mt(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var n=Mt();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Mt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:mt()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return Z({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),Ft=function(){function t(t,n,r){void 0===n&&(n=new Ct),void 0===r&&(r=4),this.F=r,this.P=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.F=t&&(clearInterval(e),r(!1)))}),1)}))},t.prototype.nt=function(){return this.V},t.prototype.it=function(){return!1!==this.getOptions().enabled&&void 0!==this.Z},t.prototype.at=function(t,n,r){var i=this,o=this.getOptions().normalizeDepth,u=void 0===o?3:o,a=e(e({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:mt()),timestamp:t.timestamp||It()});this.ct(a),this.st(a);var c=n;r&&r.captureContext&&(c=Ct.clone(c).update(r.captureContext));var s=jt(a);return c&&(s=c.applyToEvent(a,r)),s.then((function(t){return t&&(t.sdkProcessingMetadata=e(e({},t.sdkProcessingMetadata),{normalizeDepth:Q(u)})),"number"==typeof u&&u>0?i.ft(t,u):t}))},t.prototype.ft=function(t,n){if(!t)return null;var r=e(e(e(e(e({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return e(e({},t),t.data&&{data:Q(t.data,n)})}))}),t.user&&{user:Q(t.user,n)}),t.contexts&&{contexts:Q(t.contexts,n)}),t.extra&&{extra:Q(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=e(e({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype.ct=function(t){var n=this.getOptions(),r=n.environment,i=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=H(t.message,u));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=H(a.value,u));var c=t.request;c&&c.url&&(c.url=H(c.url,u))},t.prototype.st=function(t){var n=Object.keys(this.G);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=a(t.sdk.integrations||[],n))},t.prototype.ht=function(t){this.nt().sendEvent(t)},t.prototype.rt=function(t,n,r){return this.vt(t,n,r).then((function(t){return t.event_id}),(function(t){A.error(t)}))},t.prototype.vt=function(t,n,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate,a=this.getTransport();function c(t,n){a.recordLostEvent&&a.recordLostEvent(t,n)}if(!this.it())return kt(new k("SDK not enabled, will not capture event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?(c("sample_rate","event"),kt(new k("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this.at(t,r,n).then((function(r){if(null===r)throw c("event_processor",t.type||"event"),new k("An event processor returned null, will not send event.");return n&&n.data&&!0===n.data.__sentry__||s||!o?r:function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(g(t))return t.then((function(t){if(!m(t)&&null!==t)throw new k(n);return t}),(function(t){throw new k("beforeSend rejected with "+t)}));if(!m(t)&&null!==t)throw new k(n);return t}(o(r,n))})).then((function(n){if(null===n)throw c("before_send",t.type||"event"),new k("`beforeSend` returned `null`, will not send event.");var e=r&&r.getSession&&r.getSession();return!s&&e&&i.ut(e,n),i.ht(n),n})).then(null,(function(t){if(t instanceof k)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype.tt=function(t){var n=this;this.K+=1,t.then((function(t){return n.K-=1,t}),(function(t){return n.K-=1,t}))},t}();var on=function(){function t(){}return t.prototype.sendEvent=function(t){return jt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return jt(!0)},t}(),un=function(){function t(t){this.Y=t,this.Y.dsn||A.warn("No DSN provided, backend will not do anything."),this.dt=this.lt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.dt.sendEvent(t).then(null,(function(t){0}))},t.prototype.sendSession=function(t){this.dt.sendSession&&this.dt.sendSession(t).then(null,(function(t){0}))},t.prototype.getTransport=function(){return this.dt},t.prototype.lt=function(){return new on},t}();function an(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function cn(t,n){var r,i=an(n),o=t.type||"event",u="transaction"===o||!!n.tunnel,c=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=c.method,f=c.rate;!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=a(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=a(t.sdk.packages||[],n.packages||[]))}(t,n.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{r=JSON.stringify(t)}catch(n){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=n;try{r=JSON.stringify(Q(t))}catch(t){var h=t;r=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var v={body:r,type:o,url:u?Yt(n.dsn,n.tunnel):Qt(n.dsn)};if(u){var d=qt(e(e({event_id:t.event_id,sent_at:(new Date).toISOString()},i&&{sdk:i}),!!n.tunnel&&{dsn:O(n.dsn)}),[[{type:o,sample_rates:[{id:s,rate:f}]},v.body]]);v.body=At(d)}return v}var sn,fn="6.18.2",hn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){sn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n=0;n--){var r=t[n];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null},t.prototype.jt=function(t){try{if(t.stacktrace)return this.kt(t.stacktrace.frames);var n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?this.kt(n):null}catch(t){return null}},t.id="InboundFilters",t}(),ln=Object.freeze({__proto__:null,FunctionToString:hn,InboundFilters:dn}),pn="?";function yn(t,n,r,i){var e={filename:t,function:n,in_app:!0};return void 0!==r&&(e.lineno=r),void 0!==i&&(e.colno=i),e}var mn=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bn=/\((\S*)(?::(\d+))(?::(\d+))\)/,wn=[30,function(t){var n=mn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){var r=bn.exec(n[2]);r&&(n[2]=r[1],n[3]=r[2],n[4]=r[3])}var i=u(Dn(n[1]||pn,n[2]),2),e=i[0];return yn(i[1],e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],gn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,En=[50,function(t){var n,r=gn.exec(t);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var i=xn.exec(r[3]);i&&(r[1]=r[1]||"eval",r[3]=i[1],r[4]=i[2],r[5]="")}var e=r[3],o=r[1]||pn;return o=(n=u(Dn(o,e),2))[0],yn(e=n[1],o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}}],_n=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,jn=[40,function(t){var n=_n.exec(t);return n?yn(n[2],n[1]||pn,+n[3],n[4]?+n[4]:void 0):void 0}],kn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Sn=[10,function(t){var n=kn.exec(t);return n?yn(n[2],n[3]||pn,+n[1]):void 0}],On=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Tn=[20,function(t){var n=On.exec(t);return n?yn(n[5],n[3]||n[4]||pn,+n[1],+n[2]):void 0}],Dn=function(t,n){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:pn,r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function Rn(t){var n=In(t),r={type:t&&t.name,value:qn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Nn(t){return{exception:{values:[Rn(t)]}}}function In(t){var n=t.stacktrace||t.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Mn.test(t.message))return 1}return 0}(t);try{return function(){for(var t=[],n=0;n=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown";this.qt(i);"success"!==u?o(r):e({status:u})},t.prototype.At=function(t){var n=Bn(t);return this.Ot[n]||this.Ot.all},t.prototype.Ct=function(t){return this.At(t)>new Date(Date.now())},t.prototype.qt=function(t){var n,r,i,e,u=Date.now(),a=t["x-sentry-rate-limits"],c=t["retry-after"];if(a){try{for(var s=o(a.trim().split(",")),f=s.next();!f.done;f=s.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),d=1e3*(isNaN(v)?60:v);try{for(var l=(i=void 0,o(h[1].split(";"))),p=l.next();!p.done;p=l.next()){var y=p.value;this.Ot[y||"all"]=new Date(u+d)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=l.return)&&e.call(l)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!0}return!!c&&(this.Ot.all=new Date(u+function(t,n){void 0===n&&(n=Date.now());var r=parseInt(""+t,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+t);return isNaN(i)?6e4:i-n}(c,u)),!0)},t}(),Jn=function(t){function n(n,r){void 0===r&&(r=Pn());var i=t.call(this,n)||this;return i.Lt=r,i}return r(n,t),n.prototype.It=function(t,n){var r=this;if(this.Ct(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.At(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:rt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this.St.add((function(){return new St((function(n,e){r.Lt(t.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r.Mt({requestType:t.type,response:i,headers:o,resolve:n,reject:e})})).catch(e)}))})).then(void 0,(function(n){throw n instanceof k?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),n}))},n}($n),zn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.It=function(t,n){var r=this;return this.Ct(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.At(t.type)+" due to too many requests.",status:429})):this.St.add((function(){return new St((function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r.Mt({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))})).then(void 0,(function(n){throw n instanceof k?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),n}))},n}($n),Gn=Object.freeze({__proto__:null,BaseTransport:$n,FetchTransport:Jn,XHRTransport:zn}),Kn=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.prototype.eventFromException=function(t,n){return An(t,n,this.Y.attachStacktrace)},i.prototype.eventFromMessage=function(n,r,i){return void 0===r&&(r=t.Severity.Info),Cn(n,r,i,this.Y.attachStacktrace)},i.prototype.lt=function(){if(!this.Y.dsn)return n.prototype.lt.call(this);var t=e(e({},this.Y.transportOptions),{dsn:this.Y.dsn,tunnel:this.Y.tunnel,sendClientReports:this.Y.sendClientReports,Rt:this.Y.Rt});return this.Y.transport?new this.Y.transport(t):tt()?new Jn(t):new zn(t)},i}(un),Vn=s(),Qn=0;function Yn(){return Qn>0}function Zn(){Qn+=1,setTimeout((function(){Qn-=1}))}function tr(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{var i=t.__sentry_wrapped__;if(i)return i;if($(t))return t}catch(n){return t}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=i.map((function(t){return tr(t,n)}));return t.apply(this,o)}catch(t){throw Zn(),zt((function(r){r.addEventProcessor((function(t){return n.mechanism&&(xt(t,void 0,void 0),Et(t,n.mechanism)),t.extra=e(e({},t.extra),{arguments:i}),t})),captureException(t)})),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(sentryWrapped[o]=t[o])}catch(t){}W(sentryWrapped,t),B(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function nr(t){if(void 0===t&&(t={}),Vn.document&&t.eventId&&t.dsn){var n=Vn.document.createElement("script");n.async=!0,n.src=function(t,n){var r=D(t),i=Gt(r)+"embed/error-page/",e="dsn="+O(r);for(var o in n)if("dsn"!==o)if("user"===o){if(!n.user)continue;n.user.name&&(e+="&name="+encodeURIComponent(n.user.name)),n.user.email&&(e+="&email="+encodeURIComponent(n.user.email))}else e+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);return i+"?"+e}(t.dsn,t),t.onLoad&&(n.onload=t.onLoad);var r=Vn.document.head||Vn.document.body;r&&r.appendChild(n)}}var rr=function(){function t(n){this.name=t.id,this.Ut={onerror:ir,onunhandledrejection:er},this.Y=e({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this.Y;for(var n in t){var r=this.Ut[n];r&&t[n]&&(ur(n),r(),this.Ut[n]=void 0)}},t.id="GlobalHandlers",t}();function ir(){ct("error",(function(n){var r=u(cr(),2),i=r[0],e=r[1];if(i.getIntegration(rr)){var o=n.msg,a=n.url,c=n.line,s=n.column,f=n.error;if(!(Yn()||f&&f.__sentry_own_request__)){var h=void 0===f&&p(o)?function(t,n,r,i){var e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=d(t)?t.message:t,u="Error",a=o.match(e);a&&(u=a[1],o=a[2]);return or({exception:{values:[{type:u,value:o}]}},n,r,i)}(o,a,c,s):or(Ln(f||o,void 0,e,!1),a,c,s);h.level=t.Severity.Error,ar(i,f,h,"onerror")}}}))}function er(){ct("unhandledrejection",(function(n){var r=u(cr(),2),i=r[0],e=r[1];if(i.getIntegration(rr)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(t){}if(Yn()||o&&o.__sentry_own_request__)return!0;var a=y(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:Ln(o,void 0,e,!0);a.level=t.Severity.Error,ar(i,o,a,"onunhandledrejection")}}))}function or(t,n,r,i){var e=t.exception=t.exception||{},o=e.values=e.values||[],u=o[0]=o[0]||{},a=u.stacktrace=u.stacktrace||{},c=a.frames=a.frames||[],f=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(r,10))?void 0:r,v=p(n)&&n.length>0?n:function(){var t=s();try{return t.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:f,filename:v,function:"?",in_app:!0,lineno:h}),t}function ur(t){0}function ar(t,n,r,i){Et(r,{handled:!1,type:i}),t.captureEvent(r,{originalException:n})}function cr(){var t=Bt(),n=t.getClient();return[t,n&&n.getOptions().attachStacktrace]}var sr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],fr=function(){function t(n){this.name=t.id,this.Y=e({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=s();this.Y.setTimeout&&X(t,"setTimeout",hr),this.Y.setInterval&&X(t,"setInterval",hr),this.Y.requestAnimationFrame&&X(t,"requestAnimationFrame",vr),this.Y.XMLHttpRequest&&"XMLHttpRequest"in t&&X(XMLHttpRequest.prototype,"send",dr);var n=this.Y.eventTarget;n&&(Array.isArray(n)?n:sr).forEach(lr)},t.id="TryCatch",t}();function hr(t){return function(){for(var n=[],r=0;r"}0!==r.length&&Bt().addBreadcrumb({category:"ui."+n.name,message:r},{event:n.event,name:n.name,global:n.global})}return n}(this.Y.dom)),this.Y.xhr&&ct("xhr",mr),this.Y.fetch&&ct("fetch",br),this.Y.history&&ct("history",wr)},t.id="Breadcrumbs",t}();function yr(t){var n={category:"console",data:{arguments:t.args,logger:"console"},level:Tt(t.level),message:F(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(F(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Bt().addBreadcrumb(n,{input:t.args,level:t.level})}function mr(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;Bt().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;}function br(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Bt().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Bt().addBreadcrumb({category:"fetch",data:e(e({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))}function wr(t){var n=s(),r=t.from,i=t.to,e=bt(n.location.href),o=bt(r),u=bt(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),Bt().addBreadcrumb({category:"navigation",data:{from:r,to:i}})}var gr=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.Ht=n.key||"cause",this.Ft=n.limit||5}return t.prototype.setupOnce=function(){Ut((function(n,r){var i=Bt().getIntegration(t);return i?function(t,n,r,i){if(!(r.exception&&r.exception.values&&i&&x(i.originalException,Error)))return r;var e=xr(n,i.originalException,t);return r.exception.values=a(e,r.exception.values),r}(i.Ht,i.Ft,n,r):n}))},t.id="LinkedErrors",t}();function xr(t,n,r,i){if(void 0===i&&(i=[]),!x(n[r],Error)||i.length+1>=t)return i;var e=Rn(n[r]);return xr(t,n[r],r,a([e],i))}var Er=s(),_r=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Ut((function(n){if(Bt().getIntegration(t)){if(!Er.navigator&&!Er.location&&!Er.document)return n;var r=n.request&&n.request.url||Er.location&&Er.location.href,i=(Er.document||{}).referrer,o=(Er.navigator||{}).userAgent,u=e(e(e({},n.request&&n.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),a=e(e({},r&&{url:r}),{headers:u});return e(e({},n),{request:a})}return n}))},t.id="UserAgent",t}(),jr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){n((function(n){var i=r().getIntegration(t);if(i){try{if(function(t,n){if(!n)return!1;if(function(t,n){var r=t.message,i=n.message;if(!r&&!i)return!1;if(r&&!i||!r&&i)return!1;if(r!==i)return!1;if(!Sr(t,n))return!1;if(!kr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){var r=Or(n),i=Or(t);if(!r||!i)return!1;if(r.type!==i.type||r.value!==i.value)return!1;if(!Sr(t,n))return!1;if(!kr(t,n))return!1;return!0}(t,n))return!0;return!1}(n,i.Pt))return A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return i.Pt=n}return i.Pt=n}return n}))},t.id="Dedupe",t}();function kr(t,n){var r=Tr(t),i=Tr(n);if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;if(r=r,(i=i).length!==r.length)return!1;for(var e=0;e